<?php
    //获取产品类别表xz_laptop_family中的数据
    require('./00_init.php');
    $sql="select * from xz_laptop_family";
    $resquest=mysqli_query($conn,$sql);
    if($resquest){
        $rows=mysqli_fetch_all($resquest,MYSQLI_ASSOC);
        echo json_encode($rows);
    }
?>